import request from '@/utils/request'

// 易耗品领用登记分页
export function getList(params) {
  return request({
    url: '/consumables/list',
    method: 'POST',
    params
  })
}

// 新增易耗品领用登记
export function addProductsuse(data) {
  return request({
    url: '/consumables/add',
    method: 'POST',
    data
  })
}

// 查询
export function selectProductsuse(params) {
  return request({
    url: '/consumables/load',
    method: 'POST',
    params
  })
}

// 删除易耗品领用登记
export function deleteProductsuse(data) {
  return request({
    url: '/consumables/delete',
    method: 'post',
    data
  })
}

// 修改易耗品领用登记
export function updateProductsuse(data) {
  return request({
    url: '/consumables/update',
    method: 'post',
    data
  })
}

// 模糊查询申领人下拉信息
export function selectApplicant(params) {
  return request({
    url: '/projectInvocie/operator',
    method: 'post',
    params
  })
}

// 查物品
export function selectProductName(params) {
  return request({
    url: '/priceDetail/list/productName',
    method: 'post',
    params
  })
}

// 查员工
export function selectOperator(params) {
  return request({
    url: '/employee/personnelInfoOther',
    method: 'post',
    params
  })
}
